]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
perf: fix wallpaper style for overridden background
authorOwen W. Taylor <otaylor@fishsoup.net>
Mon, 25 Aug 2014 13:48:19 +0000 (09:48 -0400)
committerOwen W. Taylor <otaylor@fishsoup.net>
Tue, 26 Aug 2014 00:28:57 +0000 (20:28 -0400)
The code that loads SHELL_BACKGROUND_IMAGE, which is used to load the
performance background was loading it in WALLPAPER mode, not ZOOM
mode. Zoom mode is what we use for the actual GNOME defaultiwallpaper
and what we want to test: the background will be scaled except when
the resolution matches the 2560x1440 default backgrounds.

https://bugzilla.gnome.org/show_bug.cgi?id=735385

js/ui/background.js

index 3fe0b7a02a26640b53a8ca4fbef455f8fa598b80..27ce1242afbdd217bb1354f62e24a8eda58613df 100644 (file)
@@ -587,7 +587,7 @@ const Background = new Lang.Class({
         let filename;
         if (this._overrideImage != null) {
             filename = this._overrideImage;
-            this._style = GDesktopEnums.BackgroundStyle.WALLPAPER; // Hardcode
+            this._style = GDesktopEnums.BackgroundStyle.ZOOM; // Hardcode
         } else {
             this._style = this._settings.get_enum(BACKGROUND_STYLE_KEY);
             if (this._style == GDesktopEnums.BackgroundStyle.NONE) {